<?php
/* 
 * Filename: plugin/base/cms/all/generatecontent.php
 *
 * This function delegates the variables from the main index file
 * and generates the corresponding page.
*/
?>

<?php

generateContent($site,$plugin,$page,$clock);

function generateContent($site,$plugin,$page,$clock) {
    echo '<head>';
    include "plugin/base/cms/all/head.php";
    include "plugin/$plugin/cms/$page/head.php";
    echo '</head><body>';
    echo '<header>';
    echo '<h1>Hi SiteGeist</h1>';
    echo '</header><nav>';
    include "plugin/base/cms/all/nav.php";
    echo '</nav><div id="content">';
    include "plugin/$plugin/cms/$page/content.php";
    echo '</div><aside>';
    include "plugin/$plugin/cms/$page/aside.php";
    echo '</aside><footer>';
    include "plugin/base/cms/all/footer.php";
    include "plugin/$plugin/cms/$page/footer.php";
    echo'</footer></body>';
}


?>
